


using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Diagnostics.CodeAnalysis;
using Microsoft.EntityFrameworkCore;

namespace Identity.Models;

[Table("NavigationRole")]
[Index("NavigationId", Name = "NavigationId")]
[Index("RoleId", Name = "RoleId")]
public partial class NavigationRole
{
    [Key]
    [StringLength(100)]
    public string Id { get; set; } =Guid.NewGuid().ToString();

    [StringLength(100)]
    public string? RoleId { get; set; }

    [StringLength(100)]
    public string? NavigationId { get; set; }

    [ForeignKey("NavigationId")]
    [InverseProperty("NavigationRoles")]
    public virtual Navigation? Navigation { get; set; }

    [ForeignKey("RoleId")]
    [InverseProperty("NavigationRoles")]
    public virtual Role? Role { get; set; }
}